<!DOCTYPE html>
<html lang="zh-cmn-Hans" xmlns:th="http://www.thymeleaf.org">
<head th:replace="base/layout::header( ~{::title})">
    <title id="title">500</title>
</head>

<body>
<div id="bgDiv">
    <img src="/hades/images/500.png">
</div>
<input type="hidden" id="errorMsg" name="errorMsg" th:value="${errorMsg}" />
</body>
<script type="application/javascript">
    // 加载页面之前执行的方法
    $(document).ready(function () {
        var errorMsg = $('#errorMsg').val();
        if (errorMsg) {
            alert(errorMsg);
        }
        console.log(errorMsg);
    });
</script>
</html>